import api from './api'

/**
 * 获得banner列表 
 */
export function shopNearby(data) {
  return api.get('/store/nearby', data, { login: false })
}
/**
 * 获取首页信息
 */
export function menuGoods(data) {
  return api.get('/product/products', data, { login: false })
}



export function getShopByQrcode(data) {
  return api.get('/store/getShopByQrcode', data, { login: false })
}


export function productDetail(id) {
  return api.get(`/product/detail/${id}`)
}


export function rechargePage(data) {
  return api.get(`/recharge/page`,data, { login: false })
}

export function createRechargeOrderPay(data) {
  return api.post(`/order/createRechargeOrderPay`,data, { login: false })
}

export function deskGet(data) {
  return api.get(`/desk/get`,data, { login: false })
}


export function comment(data) {
  return api.post(`/product/store-product-reply/create`,data, { login: false })
}

export function commentDetail(data) {
  return api.get(`/product/store-product-reply/get`,data, { login: false })
}

export function commentList(data) {
  return api.post(`/product/store-product-reply/page`,data, { login: false })
}

export function getAverage(data) {
  return api.get(`/product/store-product-reply/getAverage`,data, { login: false })
}


export function checkProductInventory(data) {
  return api.post(`/order/checkProductInventory`,data, { login: false })
}

export function productSearch(data) {
  return api.get(`/product/search/keyword`,data, { login: false })
}
